
$(document).ready(function() {
	
});

	function addFriend(customerId) {
	
		var data = {
			"friendListInfo.friendId" : customerId			
		};
	
		$.ajax({
		type: 'POST',
			url : ACCOUNT_ADD_FRIEND_URL,
			data: data,
		success : function(data) {
			if (data.errorMessage != '') {
				alert(data.errorMessage);
			} else {
				if (data.successMessage != '') {
					alert(data.successMessage);
					$("#frmListCustomer_" + customerId).addClass("hide");
				}
			}
		}
		});			
	}
